import http from './http'
// https://api-hmugo-web.itheima.net/api/public/v1/home/catitems 导航 GET
export const catitemsApi=()=>{
    return http ({
        url:'https://api-hmugo-web.itheima.net/api/public/v1/home/catitems',
        method:'GET',

    })
}

// https://api-hmugo-web.itheima.net/api/public/v1/categories 分类

export const categoriesApi=()=>{
    return http ({
        url:' https://api-hmugo-web.itheima.net/api/public/v1/categories',
        method:'GET',
    })
}
// https://api-hmugo-web.itheima.net/api/public/v1/goods/search  搜索
export const searchApi=(query)=>{
    return http ({
        url:' https://api-hmugo-web.itheima.net/api/public/v1/goods/search',
        method:'GET',
        params:{
            query
        }
    })
}
